Image processing apparatus, image processing method, non-transitory computer-readable storage medium storing program

ABSTRACT

An image processing apparatus comprises: a first obtainment unit configured to obtain HDR data which represents a high-dynamic range (HDR) image; a second obtainment unit configured to obtain print information to perform printing based on the HDR data obtained by the first obtainment unit; a setting unit configured to set luminance information to be a target of the HDR data obtained by the first obtainment unit; and a conversion unit configured to convert a dynamic range of luminance of the HDR data, which has been obtained by the first obtainment unit and has been set by the setting unit with the luminance information to be the target, into a dynamic range by which printing is to be performed based on the print information obtained by the second obtainment unit.

BACKGROUND OF THE INVENTION Field of the Invention

The present invention relates to an image processing apparatus that can process high dynamic range data, an image processing method, a non-transitory computer-readable storage medium storing a program.

Description of the Related Art

International Publication No. 2018/092711 discloses that the luminance dynamic range of the HDR data of a high dynamic range (HDR) still image is converted into still image data that has a narrower dynamic range which is determined by the reflection luminance of a print sheet. HDR data is used as image capturing data of a moving image, a still image, and the like. Recently, the maximum luminance that can be displayed in a display that displays HDR data has improved, and the HDR data from the highlight side to the shadow side of an image can be displayed simultaneously with high image quality.

For example, in Recommendation ITU-R (International Telecommunication Union Radiocommunication Sector) BT.2100-2 (July 2018) Image parameter values for high dynamic range television for use in production and international programme exchange, Hybrid Log Gamma (HLG) and Perceptual Quantization (PQ) are defined as two image transfer functions of HDR data. In a transfer function, the transfer function and a bit count are defined so the tonal discontinuity will not be visually detected in image transfer.

An imaging method is defined by an OETF (Opto-Electronic Transfer Function) of the image capturing side, an EOTF (Electro-Optical Transfer Function) of the display side, and an OOTF (Opto-Optical Transfer Function) which represents the overall characteristic of conversion from scene light to display light.

An HLG method is a method that defines the OETF of the image capturing side described above by handling the range of black to white as relative tones. The EOTF of the display side is formed by an inverse function of the OETF and the OOTF which represents the overall characteristic of conversion from scene light to display light. In the HLG method, system gamma which determines the characteristic of the OOTF is applied only on a luminance component. In addition, the system gamma is determined in accordance with the luminance of each display by considering how image quality changes between displays with different maximum displayable luminance values. Also, the PQ method is a method that defines the EOTF of the display side described above by representing the display-side luminance by an absolute value of maximum 10,000 cd/m². The OETF of the image capturing side is formed by the OOTF and an inverse function of the EOTF.

On the other hand, the dynamic range of a print output tends to be narrower than the dynamic range of HDR data. In recent years, SDR (Standard Dynamic Range) displays were mainstream until the appearance of HDR displays with wide display luminance ranges. Conventionally, the maximum luminance value used when SDR data is to be displayed on a display is normally considered to be fixed at 100 cd/m². In contrast, the maximum value of luminance used when HDR data is to be displayed on a display can be changed in accordance with the luminance value defined by the HDR data or the maximum luminance value of the HDR display.

SUMMARY OF THE INVENTION

The present invention provides an image processing apparatus that prevents image quality degradation when a print output is to be performed based on HDR data representing a high dynamic range (HDR) image, an image processing method, and a non-transitory computer-readable storage medium storing a program.

The present invention in its first aspect provides an image processing apparatus comprising: a first obtainment unit configured to obtain HDR data which represents a high-dynamic range (HDR) image; a second obtainment unit configured to obtain print information to perform printing based on the HDR data obtained by the first obtainment unit; a setting unit configured to set luminance information to be a target of the HDR data obtained by the first obtainment unit; and a conversion unit configured to convert a dynamic range of luminance of the HDR data, which has been obtained by the first obtainment unit and has been set by the setting unit with the luminance information to be the target, into a dynamic range by which printing is to be performed based on the print information obtained by the second obtainment unit.

The present invention in its second aspect provides an image processing method to be executed in an image processing apparatus, the method comprising: obtaining HDR data which represents a high-dynamic range (HDR) image; obtaining print information to perform printing based on the obtained HDR data; setting luminance information to be a target of the obtained HDR data; and converting a dynamic range of luminance of the obtained HDR data, which has been set with the luminance information to be the target, into a dynamic range by which printing is to be performed based on the obtained print information.

The present invention in its third aspect provides a non-transitory computer-readable storage medium storing a program to cause a computer to function to obtain HDR data which represents a high-dynamic range (HDR) image; obtain print information to perform printing based on the obtained HDR data; set luminance information to be a target of the obtained HDR data; and convert, a dynamic range of luminance of the obtained HDR data, which has been set with the luminance information to be the target, into a dynamic range by which printing is to be performed based on the obtained print information.

According to the present invention, image quality degradation can be prevented when a print output is to be performed based on HDR data representing a high dynamic range (HDR) image.

Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing the overall arrangement of a print system;

FIG. 2 is a block diagram showing the arrangement of an image processing unit;

FIG. 3 is flowchart illustrating the procedure of image processing;

FIGS. 4A and 4B are graphs each showing a conversion curve;

FIGS. 5A, 5B, and 5C are views each showing a user interface screen;

FIG. 6 is a flowchart illustrating the procedure of image processing;

FIG. 7 is a graph showing a conversion curve;

FIG. 8 is a flowchart illustrating processing using dynamic range conversion processing;

FIG. 9 is a flowchart illustrating the procedure of the dynamic range conversion processing; and

FIGS. 10A, 10B, and 10C are graphs each showing a conversion curve.

DESCRIPTION OF THE EMBODIMENTS

Hereinafter, embodiments will be described in detail with reference to the attached drawings. Note, the following embodiments are not intended to limit the scope of the claimed invention. Multiple features are described in the embodiments, but limitation is not made to an invention that requires all such features, and multiple such features may be combined as appropriate. Furthermore, in the attached drawings, the same reference numerals are given to the same or similar configurations, and redundant description thereof is omitted.

In a case in which the above-described HDR data is of the HLG method, the HDR data will be data whose tone is defined based on a relative luminance value. Hence, when this HDR data is to be displayed on an HDR display, the HDR data will be displayed in a wide luminance dynamic range that can be reproduced by the HDR display, and an output that has a high image quality and a high contrast can be obtained. On the other hand, the luminance dynamic range that can be reproduced by a print output is narrow. When HDR data whose tone is defined by a relative luminance value is to be printed in a printing apparatus, the luminance dynamic range held by the HDR data undergoes linear conversion relative to the luminance dynamic range of the printing apparatus. As a result, the printed image will have a low contrast and become different from an image that a user actually wants to obtain from printing.

According to one point of view of the present invention, image quality degradation can be prevented when a print output is to be performed based on HDR data representing a high dynamic range (HDR) image.

First Embodiment

[ System Arrangement]

FIG. 1 is a block diagram showing the overall arrangement of a print system in which an image processing apparatus has been applied according to this embodiment. This print system includes personal computer apparatus (information processing apparatus) 101 (to be also referred to as a “PC” hereinafter), a display apparatus 102, and an output apparatus 103.

The display apparatus 102 is connected to the PC 101 via a display I/F. The display apparatus 102 is an HDR (High Dynamic Range) display and is connected to the PC 101 by an HDMI interface. The connection between the PC 101 and the display apparatus 102 is not limited to the HDMI interface and may be of another connection method as long as it is in compliance with a standard that can transfer HDR (High Dynamic Range) data. Also, the display information (to be described later) transferred between the PC 101 and the display apparatus 102 may be transferred via a display I/F 113 by using a USB (Universal Serial Bus) of a transfer path different from the HDMI interface. However, the display information transfer method is not limited to the USB cable as long as information can be communicated bidirectionally between the display apparatus 102 and the PC 101 or the output apparatus 103.

In addition, the output apparatus 103 is connected to the PC 101 via an interface such as a network, a USB cable, or a local bus. In this embodiment, an arrangement that uses an inkjet printer (image processing apparatus) will be described as an example of the output apparatus 103. The PC 101 performs operations such as issuing a print control instruction to the output apparatus 103, transferring necessary information and data, and the like. A storage device 105 stores and manages an OS, a system program, various kinds of application software, parameter data necessary for this embodiment, and the like. The storage device 105 is formed by, for example, a hard disk or a flash ROM. A CPU 104 uses a work memory 107 to read out software or a program stored in the storage device 105 and execute processing. An operation unit 106 (to be also referred to as a “UI” hereinafter) serving as a user interface accepts input related to the execution of processing from a user and performs display to the user. The operation unit 106 includes input devices such as a keyboard, a mouse, and the like. Also, the data input/output device 108 inputs/outputs data to/from an external storage medium such as an SD card or the like, and can input/output data to/from, for example, an external storage medium storing the data of an image capturing apparatus. In addition, input/output of data to/from an image capturing apparatus may be performed without intervention of an external storage medium by directly connecting the image capturing apparatus (not shown) to the data input/output device 108 or a data transfer unit 109.

The output apparatus 103 includes the data transfer unit 109, a printer control unit 112, an image processing unit 110, a printing unit 111, and receives print data from the PC 101. In this embodiment, the print data includes HDR data as input image data, target information, an image processing parameter and printer control data which are unique data of the storage medium, and printing information such as the printing quality, the print medium, and the like selected by the user on the operation unit 106. In this case, a print medium is, for example, paper media such as a print sheet and the like.

The data transfer unit 109 obtains the HDR data, the target information, and the image processing parameter from the print data received from the PC 101, transmits these obtained pieces of information and data to the image processing unit 110 to obtain printer control data, and transmits the obtained printer control data to the printer control unit 112. In this embodiment, the HDR data stored in the storage device 105 of the PC 101 serves as the input image data received by the output apparatus 103. In addition, although the image processing unit 110 is formed in the display apparatus 102 in this embodiment, it may be formed in the PC 101.

Also, the image processing parameter and the printer control data are stored in the storage device 105 of the PC 101 or a storage device (a hard disk, a ROM, or the like) (not shown) of the output apparatus 103. It may be arranged so that these pieces of information will be selected based on the print information included in the print data and be transmitted to the image processing unit 110 and the printer control unit 112. The printer control unit 112 controls the operation of the printing unit 111 in accordance with the printer control data. The printing unit 111 performs printing in accordance with the inkjet printing method. Although the inkjet printing method will be exemplified as the method employed in the printing performed by the printing unit 111 in this embodiment, another printing method such an electrophotography method or the like may be employed. The display apparatus 102 includes a display controller 114 that controls image display, and the display controller 114 generates, for example, display data.

FIG. 2 is a block diagram showing the arrangement of the image processing unit 110 according to this embodiment. First, in the image processing unit 110 according to this embodiment, the HDR data and the print information are input to a dynamic range conversion unit 201. An target information setting unit 202 sets the target information and inputs the set target information to the dynamic range conversion unit 201. As will be described later, the dynamic range conversion unit 201 uses each piece of input information to convert the HDR data into image data of a dynamic range that can be input to an output image generation unit 203. The dynamic range of the image data to be input to the output image generation unit 203 is narrower as a luminance range than the high dynamic range of the input HDR data. The dynamic range to be input to the output image generation unit 203 is, for example, a dynamic range which has the maximum luminance 100 cd/m² of SDR data. Also, a dynamic range whose maximum value is set by the reflection luminance specified by the sheet information set by the user may also be used. In this embodiment, assume that the dynamic range conversion unit 201 converts the dynamic range of the HDR data into the dynamic range of SDR data.

Next, the output image generation unit 203 generates, for the image data (RGB data) output from the dynamic range conversion unit 201, data to be used for printing by the printhead of the printing unit 111.

FIG. 3 is a flowchart illustrating image processing according to this embodiment. In step S301, the dynamic range conversion unit 201 obtains the RGB data of the HDR data. As described above, Hybrid Log Gamma (HLG) and Perceptual Quantization (PQ) are defined as two image transfer functions of HDR data in, for example, Recommendation ITU-R (International Telecommunication Union Radiocommunication Sector) BT.2100. The HDR data according to this embodiment is stored in accordance with the above-described HLG method which defines the tone based on a relative luminance value. At this stage, the tone is defined for each of R, G, and B elements based on a relative luminance value. Although the HLG method is employed in this embodiment, another method may be employed as long as the tone is defined relatively. In this embodiment, the HDR data obtained in step S301 is also used in the display operation performed by the display apparatus 102 which is an HDR display.

In step S302, the dynamic range conversion unit 201 obtains the target information set by the target information setting unit 202. Target information is information that can convert the input HDR data into data whose tone is defined by an absolute value. In this embodiment, the target information includes luminance dynamic range information and system gamma information. The luminance dynamic range information includes information whose maximum luminance value and minimum luminance value are 1,000 cd/m² and 0 cd/m², respectively. The system gamma information includes information in compliance with BT.2100. These pieces of information are input to the dynamic range conversion unit 201. Each piece of target information is held by the image processing unit 110 unless the information is changed. By applying the held values at the time of printing, the reproducibility of the printed product can be ensured even when a plurality of copies of the printed product are to be printed.

In step S303, the dynamic range conversion unit 201 obtains the print information. The print information is information for specifying the dynamic range after the dynamic range conversion. In this embodiment, for example, print mode information is obtained as the print information, and whether an input to the output image generation unit 203 is SDR data of sRGB values will be specified based on the print mode information. As a result, a maximum luminance value of 100 cd/m² is specified as the luminance dynamic range after the conversion for the SDR data. The print information can be obtained by obtaining information which indicates the sheet type, and suffices to be information that can specify the reflection luminance which is specified from the sheet type. Another piece of information may be used as long as it is information from which the luminance dynamic range information at the time of printing can be obtained. Also, a printed product may be irradiated with illumination of various kinds of illuminance depending on the observation environment. If the printed product is to be irradiated with illumination, the luminance dynamic range of a sheet will expand particularly due to the increase in the brightness of the whiteness of the paper. Hence, the reflection luminance of a sheet when the sheet is irradiated with illumination may be obtained as the luminance dynamic range information at the time of printing.

In step S304, the dynamic range conversion unit 201 generates, based on the target information obtained in step S302 and the print information obtained in step S303, image data obtained by converting the luminance dynamic range from the HDR data. That is, in this embodiment, dynamic range conversion processing is performed to convert a luminance dynamic range which has been obtained from the target information and has the maximum luminance value of 1,000 cd/m² into a luminance dynamic range which has been obtained from the print information and has the maximum luminance value of 100 cd/m². As described above, the luminance dynamic range after the dynamic range conversion becomes a luminance dynamic range expressed by the absolute luminance value specified by the print information.

The HDR data according to this embodiment is data converted by a transfer function OETF of the HLG method described above. In addition, the HDR data is also set to be in compliance with BT.2100 by the target information. Hence, the dynamic range conversion unit 201 performs luminance conversion on the HDR data so that a luminance signal level x of the HDR data will be converted into a luminance signal level y by using a transfer function EOTF (an inverse function of OETF) and a transfer function OOTF of the HLG method determined by

$\begin{matrix} {\left. {y = {{OOTF}\left\lbrack {{OETF}^{- 1}\left\lbrack {{\max 0},{{\left( {1 - \beta} \right){E'}} + \beta}} \right)} \right\rbrack}} \right\rbrack{E = {{OET{F^{- 1}\lbrack x\rbrack}} = \left\{ {{\begin{matrix} {{\frac{x^{2}}{3}\ 0} \leq x \leq {1/2}} \\ {{\frac{\left\{ {{\exp\left( \frac{x - c}{a} \right)} + b} \right\}}{12}\ {1/2}} < x \leq 1} \end{matrix}\beta} = {{\sqrt{3\left( \frac{L_{B}}{L_{w}} \right){1/\gamma}}{{OOTF}\lbrack E\rbrack}} = {{\alpha\; Y_{s}^{\gamma - 1}E\gamma} = {{1.2} + {{0.4}2\;{{Log}\;}_{10}\left( {{L_{w}/1}000} \right)}}}}} \right.}}} & (1) \end{matrix}$

where Lw is a maximum luminance value of the display, and LB is a luminance value of black of the display. In this embodiment, assume that LB is 0. E′ is an HLG method signal, and x is a signal normalized into a range between 0 and 1. a is a variable for a user gain, Ys is a normalized luminance value, and E is a linear optical signal normalized into a range between 0 and 1.

Next, the dynamic range conversion unit 201 sets the data obtained from the OOTF processing as data whose maximum luminance value is 1,000 cd/m², and performs dynamic range conversion processing to convert this data into data whose luminance dynamic range has a maximum luminance value of 100 cd/m² corresponding to the value obtained from the print information. In this embodiment, the dynamic range conversion unit 201 converts the RGB data obtained from the OOTF processing into data which has a luminance value Y and color differences CbCr by

Y=0.29900×R+0.58700×G+0.114400×B  (2)

Cb=−0.16874×R−0.33126×G+0.50000×B  (3)

Cr=0.50000×R−0.41869×G−0.081×B  (4)

The dynamic range conversion unit 201 performs the luminance dynamic range conversion to convert data of the converted luminance value Y into a luminance value Y′ based on a conversion curve indicated by a solid line in a graph (the abscissa indicates an input luminance value and the ordinate indicates an output luminance value) shown in FIG. 4A. A short dashed line shown in FIG. 4A indicates a state in which the input and the output are linear. In this embodiment, as indicated by the solid line shown in FIG. 4A, linear conversion is performed from a dark portion to a specific luminance portion, and conversion by a Log characteristic is performed in a highlight portion. As shown in FIG. 4A, it is preferable to perform dynamic range compression processing to maintain the contrast of the image while reproducing the highlight region of the HDR data. In addition, FIG. 4B shows a case in which the luminance dynamic range of the HDR data is linearly converted relative to the luminance dynamic range of the printing apparatus. In FIG. 4B, since the luminance dynamic range of the HDR data to be input is not defined and undergoes linear conversion relatively, the contrast of the SDR data to be output becomes low. On the other hand, since the luminance dynamic range of the HDR data has been defined based on the target information, the contrast of the SDR data output from the luminance dynamic range conversion shown in FIG. 4A becomes high compared to FIG. 4B. The dynamic range conversion unit 201 combines the converted luminance value Y′ and the color difference component to perform conversion into RGB data by

R=Y+1.40200×Cr  (5)

G=Y−0.34414×Cb−0.71414×Cr  (6)

B=Y+1.77200×Cb  (7)

Although luminance dynamic range compression has been described above, color gamut compression processing of converting the wide color gamut space of HDR data (for example, ITU-R BT.2020) into the color gamut of SDR data (for example, ITU-R BT.709) may be performed for the color gamut.

Next, in step S305, the output image generation unit 203 generates output image data to be output to the printing unit 111. For example, the output image generation unit 203 performs color conversion processing to convert the SDR data (RGB data), which was output in step S304, into device dependent RGB data. The output image generation unit 203 performs ink color resolution processing to convert the device dependent RGB data into ink color data, and performs tone correction processing to perform tone correction so that the ink color data will be linearly associated with the tone characteristic of the printing apparatus. Furthermore, the output image generation unit 203 performs halftone processing to convert the ink color data into ink dot ON/OFF information, masking data conversion processing which generates binary data to be printed in each print scan of the printhead, and the like.

Next, in step S306, the output image generation unit 203 transmits the generated output image data to the printing unit 111, and an image is subsequently output on a print medium.

According to this embodiment, by setting the target information when HDR data of the HLG method is to be printed, data whose tone is defined by a relative value is converted into data whose tone is defined by an absolute value. Furthermore, data is generated by performing dynamic range conversion, on the data whose tone is defined by an absolute value, by an absolute value up to a luminance dynamic range which is to be used at the time of printing and is determined by the printing information. As a result, a print output with high image quality and high contrast can be obtained.

Although this embodiment showed an example in which a fixed value held by the image processing unit 110 is set as the target information, the target information may be held by obtaining information from the display apparatus 102 at a predetermined timing. In such a case, the information to be obtained will be the luminance dynamic range information and the system gamma information of the display, and information which is in compliance with BT.2100 will be obtained from the display and be held by the image processing unit 110. In addition, since a gamma value y described above may be set by the user on the display, it may be arranged so the gamma value will be obtained from the display. In such a case, the information to be obtained suffices to be information that can convert the input HDR data into the data whose tone is defined by an absolute value.

Although this embodiment described an arrangement in which the target information is held by the image processing unit 110, it may be arranged so that the target information will be obtained from the HDR data. More specifically, the output apparatus 103 or a print application will generate HDR data obtained by overwriting the target information on a metadata portion (for example, Exif or the like) of the HDR data at the completion of the printing. This overwritten HDR data will be obtained in step S301, and a result obtained from reading the metadata portion of this HDR data will be obtained as the target information in step S302. Such an arrangement will allow a print output with high image quality and high contrast to be obtained even when printing is performed a plurality of times. In addition, a reproducible print output can be obtained because the target information will not change even when printing is performed a plurality of times.

In addition, it may be arranged so that the target information will be accepted from the user via user interfaces as shown in FIGS. 5A to 5C. As shown in FIGS. 5A to 5C, when the user presses “obtain display information”, the target information is obtained from the display apparatus 102 as described above. The HDR data is displayed in a display. The dynamic range conversion unit 201 obtains the display information recording the display state of the display apparatus 102 at that time from the display apparatus 102 or via the PC 101 at the point of time at which the user who is to perform printing on the output apparatus 103 has pressed a print button on a print application or on a panel of the output apparatus 103. Also, in a case in which the display information is stored in the PC 101 at a suitable time in synchronization with the display, the dynamic range conversion unit 201 may obtain the display information from the PC 101. Also, it may be arranged so that the display information will be obtained at the point of time in which the print application or the output apparatus 103 has been activated or be reobtained at the timing at which the display setting has been changed on the side of the display apparatus 102. That is, it is sufficient as long as the display state of the display (the display apparatus 102) viewed by the user at the time of printing can be obtained. In addition, although a single display is connected to the PC 101 in this embodiment, a plurality of displays may be simultaneously connected to a single PC and used in some cases. In a case in which extended display is performed by a plurality of displays (display performed across a plurality of displays), the display which is displaying the print preview of HDR data will be recognized and the display information of this play will be obtained. In addition, in a case in which duplicate display is being performed among the plurality of displays (the same display is performed among the plurality of displays), the user may select the display from which the display information is to be obtained or a display from which the display information will be preferably obtained may be set in advance. Furthermore, the target information may be obtained by arranging so that the user will select the target information from a pull-down menu or input the target information as shown in FIGS. 5B and 5C, respectively. As a result, the target information can be selected arbitrarily by the user. Note that the screens shown in FIGS. 5A to 5C may be arranged so that they will be formed on, for example, the output apparatus 103 or the PC 101.

Second Embodiment

Points different from the first embodiment will be described in the second embodiment hereinafter. In this embodiment, the target information will be set based on information of a plurality of display apparatuses 102.

This embodiment will describe an example in which the display information of a plurality of display apparatus 102 is used to set the target information in the process of step S302 of FIG. 3. In this embodiment, three display apparatuses 102, such as a PC, a smartphone, a tablet, and the like which are connected to corresponding displays, are connected to a network by a LAN cable, a communication network, and the like. In this embodiment, in step S302, a dynamic range conversion unit 201 will obtain a maximum luminance value and a minimum luminance value which are the luminance information of the luminance dynamic range information of each of the three display apparatuses 102. The dynamic range conversion unit 201 may obtain the pieces of display information of the plurality of display apparatuses 102 by accepting user input on a UI as shown in FIG. 5C. Also, the dynamic range conversion unit 201 may obtain the display information of the display apparatus 102 from the management software of each of the PC, the smartphone, and the tablet which is connected to a corresponding display, and this information may be automatically obtained via the network. In such a case, the display information obtainment timing may be, for example, the point of time at which the user who is to perform printing on a output apparatus 103 has pressed a print button on a print application or on a panel of the output apparatus 103, and the display information recording the display state at this point of time is obtained from the display apparatus 102 or via a PC 101. In addition, it may be arranged so that the display information will be obtained via the network at appropriate times and the pieces of display information of the plurality of the display apparatuses 102 will be used at the point of time in which the print button is pressed. Also, although the plurality of display apparatuses 102 are connected to different apparatuses such as a PC, a smartphone, a tablet, and the like in this embodiment, it may be arranged so that the plurality of display apparatuses 102 are connected to one PC 101 as described above. Furthermore, it may be arranged so that a plurality of PCs 101 which are connected to the plurality of display apparatuses 102 will be present on a network.

For example, a maximum luminance value of 2,000 cd/m², a maximum luminance value of 1,500 cd/m², and a maximum luminance value of 1,000 cd/m² are the pieces of display information obtained for a display A, a display B, and a display C, respectively, in this embodiment. In addition, all of the three displays have a minimum luminance value of 0 cd/m². In this embodiment, for example, the maximum luminance value of 1,000 cd/m² and the minimum luminance value of 0 cd/m² of the display C which has the narrowest luminance dynamic range among the three display apparatuses are set as the target information.

According to this embodiment, the luminance dynamic range information of a display apparatus with the narrowest luminance dynamic range among the plurality of display apparatuses 102 is set as the target information. As a result, a print output for data that can be displayed in any of the displays can be obtained in addition to obtaining a high image quality print output with a high contrast.

Alternatively, the luminance dynamic range information of the display apparatus 102 with the widest luminance dynamic range among the plurality of display apparatuses 102 may be set as the target information. As a result, a print output corresponding to a display apparatus that displays an image with the highest contrast can be obtained.

Alternatively, an average of the luminance dynamic ranges of the plurality of display apparatuses 102 may be set as the target information. For example, a maximum luminance value of 1,500 cd/m² and a minimum luminance value of 0 cd/m² can be set as the luminance dynamic range information. As a result, a balanced print output can be obtained. Furthermore, a statistical value other than the average may be used.

In this embodiment, the target information was set in accordance with the widths of the luminance dynamic ranges of the plurality of display apparatuses 102. However, in a case in which the maximum luminance values vary more than the minimum luminance values of the plurality of display apparatuses 102, the widths of the luminance dynamic ranges may be determined based only on the maximum luminance values.

Third Embodiment

Points different from those of the first embodiment and the second embodiment will be described in the third embodiment hereinafter. This embodiment will describe an arrangement for changing between the processing according to the first embodiment and the processing performed when HDR data of the PQ method is input.

In this embodiment, HDR data (RGB data) obtained in step S301 of FIG. 6 is recorded in accordance with the PQ method which defines the tone in an absolute luminance value described above. In this embodiment, assume that information up to 10,000 cd/m² has been recorded in the HDR data.

Since the tone is defined by an absolute luminance value in the PQ method, the luminance dynamic range is determined by the HDR data itself. Hence, if it is determined in the process of step S601 after the process of step S301 that the HDR data whose tone is defined by an absolute luminance value as in the PQ method has been obtained, the process of step S302 is skipped.

The description of the process of step S303 is similar to that of the process of step S303 of FIG. 3.

In step S304, a dynamic range conversion unit 201 generates, based on the print information obtained in step S303, data in which the luminance dynamic range has been converted from the luminance dynamic range of the HDR data. In a case in which HDR data of the PQ method is obtained, the dynamic range conversion unit 201 converts the information of a luminance dynamic range of the HDR data which has a maximum luminance value of 10,000 cd/m² into a luminance dynamic range which has a maximum luminance value of 100 cd/m² and has been obtained from the print information obtained in step S303. The HDR data undergoes luminance conversion so that a luminance signal level x of the HDR data will be converted into a luminance signal level y by using a transfer function EOTF of the PQ method defined by

$\begin{matrix} {{y = {{{EOTF}\left\lbrack E^{\prime} \right\rbrack} = {10000Y}}}{Y = \left( \frac{\max\left\lbrack {\left( {{E^{\prime}}^{\;^{{{1/m}2})}} - C_{1}} \right),0} \right\rbrack}{C_{2} - {C_{3}{E^{\prime}}^{{1/m}2}}} \right)}} & (8) \end{matrix}$

In this embodiment, LB is 0. E is a PQ method signal, and x is a signal normalized into a range between 0 and 1.

Next, the dynamic range conversion unit 201 sets the data converted by the EOTF processing as data whose maximum luminance value is 10,000 cd/m², and performs dynamic range conversion processing to convert this data into data whose luminance dynamic range has a maximum luminance value of 100 cd/m². In this embodiment, the converted SDR data is obtained by performing conversion on the data of a converted luminance value Y by the conversion curve shown in FIG. 7.

The processes of steps S305 and S306 are similar to the processes of steps S305 and S306 of FIG. 3 according to the first embodiment.

According to this embodiment, the processing can be switched in accordance with whether the HDR data of the HLG method or the HDR data of the PQ method is to be used, and a suitable print output corresponding to the transfer function of the HDR data can be obtained.

Although the luminance dynamic range conversion has been performed by using YCbCr in this embodiment, the luminance dynamic range conversion may also be performed by using ICtCp. ICtCp is a color space which has a high dynamic range so as to target a wide color gamut signal. I represents a luminance component and CtCp represents color difference components. The luminance component I is information which takes human vision characteristics in a wide luminance range into consideration. As a result, using the ICtCp color spaces allows luminance dynamic range conversion to be performed by taking the human vision characteristics into consideration.

Also, in this embodiment, instead of performing luminance dynamic range conversion based on the characteristics shown in FIGS. 4A and 4B, the dynamic range conversion processing may be performed in accordance with the processing shown in the flowcharts of FIGS. 8 and 9.

In step S801 of FIG. 8, the dynamic range conversion unit 201 separates the RGB data obtained from the OOTF processing by equations (2), (3), and (4) into a luminance component and color difference components.

In step S802, the dynamic range conversion unit 201 performs processing to separate a low-frequency component and a high-frequency component of the data converted into the luminance component. This is because processing is changed between the low-frequency components and the high-frequency components based on the Retinex theory. The Retinex theory is a theory that models how the human brain perceives light and color. According to this theory, the intensity of light which enters the eye can be represented by a product of the reflectance of an object and illumination light illuminating the object, and the brightness and the color felt by a person depends more on the relative amount of change from the surroundings than an absolute optical amount. Here, the absolute optical amount is the illumination light illuminating the object, and the relative amount of change is the reflectance of the object.

In step S802, the dynamic range conversion unit 201 extracts the low-frequency component of the image data as an illumination light component illuminating the object. A low pass filter is applied to create the low-frequency component. As the processing method, a spatial filter may be applied or a target frequency component may be temporarily converted into a spatial frequency by FFT and turned back into the frequency component by IFFT after undergoing filter processing. The frequency to be the target may be determined, in consideration of the human vision characteristics, based on the sheet size of the sheet on which the printed product is to be observed or an observation distance. In order to obtain the high-frequency component, a high pass filter which is the opposite of the low pass filter may be applied or the obtained low-frequency component may be subtracted from the original image.

In step S803, the dynamic range conversion unit 201 performs dynamic range conversion processing on the low-frequency component based on the input luminance dynamic range information and the output luminance dynamic range information. The processing of step S803 will be described in detail later with reference to FIG. 9.

In step S804, the dynamic range conversion unit 201 performs contrast correction processing on the high-frequency component. The contrast correction processing is processing in which an obtained image is multiplied by a coefficient k. In a case in which the printed product is to be faithfully brought close to the input data, k=approximately 1. In a case in which degradation such as ink bleeding on the printed product is to be further considered, a value equal to 1 or more is set as the coefficient k.

In step S805, the dynamic range conversion unit 201 combines the image data in which the dynamic range conversion has been performed on the low-frequency component and the image data in which contrast correction has been performed on the high-frequency component. As a result, the image data is compressed into a predetermined dynamic range, and a luminance image with a corrected contrast is obtained.

In step S806, the dynamic range conversion unit 201 combines the luminance component and the color difference component to perform conversion into RGB data by equations (5), (6), and (7). After the process of step S806, the processing of FIG. 8 ends.

The dynamic range conversion processing of step S803 will be described by using the flowchart of FIG. 9.

In step S901, the dynamic range conversion unit 201 calculates a compression range. In this embodiment, dynamic range conversion processing is performed to convert the luminance dynamic range which has been obtained from the target information and has a maximum luminance value of 1,000 cd/m² into the luminance dynamic range which has been obtained from the print information and has a maximum luminance value of 100 cd/m². In addition, the dynamic range conversion unit 201 obtains an exposure luminance value Ya from the metadata of HDR data. This is the point where the user has set the exposure during an image capturing operation. Assume that the exposure luminance value Ya is 18 cd/m² in this embodiment.

In step S902, the dynamic range conversion unit 201 divides the image of the HDR data into regions. The region division of the image may be performed by dividing the image into predetermined rectangular size regions or by creating groups of similar luminance pixels based on the luminance image information. In the latter case, it is possible to restore the contrast of a specific luminance range that has undergone region division, and an image with better contrast can be obtained. In addition, it is possible to use not only the luminance data, but also the RGB data. As a result, image recognition can be performed by the RGB data, and a method that restores the contrast in accordance with each type of recognized region can be employed.

In step S903, the dynamic range conversion unit 201 creates a conversion curve for each region divided in step S902. FIGS. 10A, 10B, and 10C are graphs each showing an example of a conversion curve. FIG. 10A is a graph representing the conversion curve of a given region. The abscissa indicates an input luminance value, the ordinate indicates an output luminance value, and the thick line indicates the conversion curve. The bar graph shows the luminance distribution of the region, and the bars correspond to the degrees of a predetermined luminance range (corresponding to the ordinate on the right). In FIGS. 10A, 10B, and 10C, Di denotes a pre-conversion luminance dynamic range and Do denotes a post-conversion luminance dynamic range. In a case in which the slope is 1, that is, 45°, the input luminance value and the output luminance value will match, and image change will not occur in this portion. That is, the pre-conversion contrast of the dynamic range will be maintained. As the slope decreases (to an angle less than 45°), the post-conversion contrast degrades compared to the pre-conversion contrast. The contrast needs to be maintained to obtain a suitable post-conversion image, and it is preferable to set the slope to 1. Since a low-frequency component is being handled in this case, conversion needs to be performed, as much as possible, to set the slope to 1 to maintain the contrast of the low-frequency component. FIG. 10B represents the conversion curve of another region, but the luminance distribution is skewed toward the high-luminance side. In a similar manner to FIG. 10A, a slope close to 1 is assigned to a high-degree luminance group in accordance with the degrees of the distribution. FIG. 10C represents a conversion curve of a region in which the luminance is distributed uniformly. In this case, the slope cannot be assigned to 1 even if a high-degree luminance group is present. This is because assigning a slope of 1 to a specific luminance group will cause the slope of another luminance group to be set closer to 0 due to the narrowness of the post-conversion luminance dynamic range Do. In such a case, the slope will be assigned on average among the luminance groups, and the slope will be distributed in correspondence with each degree so no luminance group, among the luminance groups, will have a slope which is set extremely close to 0. In addition, FIGS. 10A to 10C representing different regions of the image have a common portion. This common portion is, for example, the exposure luminance value Ya obtained in step S901, and each conversion curve is created so that the luminance value after the conversion will constantly be a predetermined value Ya′. As a result, the exposure luminance set by the user at the time of image capturing can be maintained while reproducing the tone on the high-luminance side.

In step S904, the dynamic range conversion unit 201 determines whether a conversion curve has been created for every divided region. If it is determined that the conversion curve has not been created for every divided region, the processing is repeated from step S903. Otherwise, the process advances to step S905.

In step S905, the dynamic range conversion unit 201 uses each created conversion curve to perform dynamic range compression procession on each pixel. At this time, the processing is performed in consideration of the information of the surrounding regions so as not to create locations where the tone becomes discontinuous between regions. More specifically, a window of the same degree as the region can be assigned so that weighting can be performed based on the area included in the window and the dynamic range compression processing can be performed based on this ratio. Also, since a simple area ratio can cause an image defect such as a halo to be generated on the boundary, the weight may be changed based on the average luminance value of the target region. That is, an image defect can be suppressed by reducing the weight compared to the target pixel in accordance with the increase in the variation of the average luminance values of the respective surrounding regions.

In step S906, the dynamic range conversion unit 201 determines whether the processing of step S905 has been performed on all of the pixels. If it is determined that the processing has not been performed on all of the pixels, the processing is repeated from step S905. Otherwise, the processing of FIG. 9 ends.

In this manner, by separating the image data into a high-frequency component and a low-frequency component based on the Retinex theory and performing luminance dynamic range conversion on the low-frequency component by using a conversion curve for each region of the image, a high-contrast image that considers the human vision characteristic can be generated.

The embodiments showed an example in which HDR data in compliance with the BT.2100 standard is to be printed. However, the present invention is not limited to the BT.2100 standard. Processing which is in compliance with another standard may be performed or only the transfer by OETF and EOTF may be performed. For example, although the HLG method and the PQ method have been exemplified as the transfer functions, another method may be used as long as a transfer function that processes the HDR data by defining the tone by the relative luminance value or the absolute luminance value is used. In such a case, the transfer functions and system gamma represented by equations (1) and (8) will be of a form that complies with the corresponding standard. Alternatively, only the transfer functions (OETF and EOTF) may be applied without complying with a standard.

Although FIGS. 4A and 4B, 7, and 8 were exemplified as luminance dynamic range conversion processing methods according to the embodiments, the present invention is not limited to these methods. Any kind of method can be used as long as it is a method that performs conversion of the luminance dynamic range. In addition, the input/output luminance dynamic ranges of the dynamic range conversion processing are not limited to the luminance dynamic ranges (1,000 cd/m² and the like) exemplified in each embodiment. Furthermore, a display apparatus 102 according to the embodiments may be an apparatus of any form, and is not limited to the display as long as it is an apparatus that can display information such as a panel or a touch panel attached to a smartphone or an apparatus.

The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, to apprise the public of the scope of the present invention, the following claims are made.

OTHER EMBODIMENTS

Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.

While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

This application claims the benefit of Japanese Patent Application No. 2020-015536, filed Jan. 31, 2020, which is hereby incorporated by reference herein in its entirety. 

What is claimed is:
 1. An image processing apparatus comprising: a first obtainment unit configured to obtain HDR data which represents a high-dynamic range (HDR) image; a second obtainment unit configured to obtain print information to perform printing based on the HDR data obtained by the first obtainment unit; a setting unit configured to set luminance information to be a target of the HDR data obtained by the first obtainment unit; and a conversion unit configured to convert a dynamic range of luminance of the HDR data, which has been obtained by the first obtainment unit and has been set by the setting unit with the luminance information to be the target, into a dynamic range by which printing is to be performed based on the print information obtained by the second obtainment unit.
 2. The apparatus according to claim 1, wherein the print information is information for specifying a dynamic range to be obtained by the conversion by the conversion unit.
 3. The apparatus according to claim 2, wherein the print information includes information which indicates a type of a sheet to be printed.
 4. The apparatus according to claim 1, wherein the HDR data to be obtained by the first obtainment unit is post-luminance conversion data on an image capturing side.
 5. The apparatus according to claim 4, wherein the HDR data obtained by the first obtainment unit is pre-luminance conversion data on an output side.
 6. The apparatus according to claim 5, wherein the conversion unit executes luminance conversion on the output side and performs dynamic range conversion on HDR data on which the luminance conversion has been executed.
 7. The apparatus according to claim 1, further comprising: a third obtainment unit configured to obtain display information of a display apparatus, wherein the setting unit sets the luminance information to be the target based on the display information obtained by the third obtainment unit.
 8. The apparatus according to claim 7, wherein in a case in which the third obtainment unit is to obtain display information of a plurality of display apparatuses, the setting unit sets the luminance information to be the target based on display information corresponding to the plurality of display apparatuses.
 9. The apparatus according to claim 1, further comprising: a storage unit configured to hold the luminance information to be the target.
 10. The apparatus according to claim 1, wherein the conversion unit performs dynamic range conversion by using conversion information for converting a dynamic range.
 11. The apparatus according to claim 1, wherein the conversion unit converts the dynamic range of the luminance of the HDR data obtained by the first obtainment unit into a dynamic range, by which printing is to be performed, so that input luminance and output luminance will match within a predetermined luminance range.
 12. The apparatus according to claim 1, further comprising: a division unit configured to divide an image represented by the HDR data into regions, wherein the conversion unit performs dynamic range conversion by using conversion information which is used to convert a dynamic range and is set for each region divided by the division unit.
 13. The apparatus according to claim 12, wherein the division unit performs region division on a low-frequency component of the image represented by the HDR data.
 14. The apparatus according to claim 13, further comprising: a unit configured to perform contrast correction on a high-frequency component of the image represented by the HDR data.
 15. The apparatus according to claim 1, further comprising: a printing unit configured to perform printing based on data that has undergone dynamic range conversion by the conversion unit.
 16. The apparatus according to claim 1, wherein, in an image transfer function of the HDR data, a tone of each pixel is defined based on a relative luminance value.
 17. The apparatus according to claim 1, wherein the HDR data is data defined by an HLG (Hybrid Log Gamma) method.
 18. An image processing method to be executed in an image processing apparatus, the method comprising: obtaining HDR data which represents a high-dynamic range (HDR) image; obtaining print information to perform printing based on the obtained HDR data; setting luminance information to be a target of the obtained HDR data; and converting a dynamic range of luminance of the obtained HDR data, which has been set with the luminance information to be the target, into a dynamic range by which printing is to be performed based on the obtained print information.
 19. The method according to claim 18, wherein, in an image transfer function of the HDR data, a tone of each pixel is defined based on a relative luminance value.
 20. The method according to claim 18, wherein the HDR data is data defined by an HLG (Hybrid Log Gamma) method.
 21. A non-transitory computer-readable storage medium storing a program to cause a computer to function to obtain HDR data which represents a high-dynamic range (HDR) image; obtain print information to perform printing based on the obtained HDR data; set luminance information to be a target of the obtained HDR data; and convert, a dynamic range of luminance of the obtained HDR data, which has been set with the luminance information to be the target, into a dynamic range by which printing is to be performed based on the obtained print information.
 22. The medium according to claim 21, wherein, in an image transfer function of the HDR data, a tone of each pixel is defined based on a relative luminance value.
 23. The medium according to claim 21, wherein the HDR data is data defined by an HLG (Hybrid Log Gamma) method. 